package com.delivery.www.service;

import com.delivery.www.po.Dish;

import java.sql.SQLException;
import java.util.List;

public interface DishService {
    //获取店铺下的菜品
    public List<Dish> getDish(int storeId);

    //添加菜品
    public boolean addDish(String dishName, int storeId, Float price, String describe);

    //修改菜品名
    public boolean updateDishName(String oldName, String newName);

    //修改菜品价格
    public boolean updateDishPrice(String oldName, Float price);

    //修改菜品描述
    public boolean updateDishDescribe(String oldName,String introduce);

    //删除菜品
    public boolean deleteDish(String name, int storeId);

    //获取一个菜品
    public Dish getOneDish(int dishId);
}
